package com.bear.atlassianmcp;

import com.bear.atlassianmcp.common.util.ParseRestful;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * Atlassian MCP服务器主应用类
 * 支持JIRA和Confluence的MCP服务器
 */
@SpringBootApplication
public class AtlassianMcpApplication {

    public static void main(String[] args) {
        SpringApplication.run(AtlassianMcpApplication.class, args);
    }

    @Bean
    public ToolCallbackProvider mcpRestfulToolCallbackProvider(ParseRestful parseRestful) {
        return parseRestful.getRestfulToolCallbackProvider();
    }
}
